﻿function equipeChanged(ctl)
{
	var frm = document.forms[0];
	frm.Service.value = "";
	frm.Departement.value = "";
	frm.Domaine.value = "";
	var iCount = ctl.options.length;
	for (var i=0; i < iCount; i++)
	{
		var opt = ctl.options[i];
		if (opt.selected)
		{
			frm.Service.value = opt.service;
			frm.Departement.value = opt.departement;
			frm.Domaine.value = opt.domaine;
			break;
		}
	}
}
function serviceChanged(ctl)
{
	var frm = document.forms[0];
	frm.Departement.value = "";
	frm.Domaine.value = "";
	var iCount = ctl.options.length;
	for (var i=0; i < iCount; i++)
	{
		var opt = ctl.options[i];
		if (opt.selected)
		{
			frm.Equipe.value = "";
			frm.Departement.value = opt.departement;
			frm.Domaine.value = opt.domaine;
			break;
		}
	}
}
function departementChanged(ctl)
{
	var frm = document.forms[0];
	frm.Domaine.value = "";
	var iCount = ctl.options.length;
	for (var i=0; i < iCount; i++)
	{
		var opt = ctl.options[i];
		if (opt.selected)
		{
			frm.Equipe.value = "";
			frm.Service.value = "";
			frm.Domaine.value = opt.domaine;
			break;
		}
	}
}
function domaineChanged(ctl)
{
	var frm = document.forms[0];
	frm.Equipe.value = "";
	frm.Service.value = "";
	frm.Departement.value = "";
}
